<?php
namespace app\behavior;

class Cors
{
	public function moduleInit($params){
		header('Access-Control-Allow-Origin: *');
		header('Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With');
		header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE');
		header('Access-Control-Max-Age: 1728000');
		header('access-Control-Expose-Headers: authorization');
	}
}